1
general::
Be aware of where one's best interests lie, as in Jerry always helps out his boss; he knows which side of his bread is buttered. This expression alludes to the more favorable, or buttered, side of bread and has been used metaphorically since the early 1500s.
American Heritage Idioms